<?php
include dirname(dirname(__FILE__)).'/user-manage/functions.php';
include_once dirname(dirname(dirname(__FILE__))).'/include/db_connect.php';

function getWorkTime($user_id) {
	$conn = get_db_conn();
	$sql = 'select work_time from user where id = '.$user_id.' limit 0,1;';
	$result = mysql_query($sql,$conn) or die("db error");
	$row = mysql_fetch_array($result);
	return json_decode($row['work_time'],true);
}


